package com.xiaoa.gossip.cluster.service;

import com.xiaoa.gossip.cluster.command.PingCommand;
import com.xiaoa.gossip.cluster.command.PingNodeState;

/**
 * 集群消息工厂类
 * @author luokaichuang
 * @time 2020/6/19
 */
public interface ClusterMsgFactory {

    /**
     *  创建 节点失效消息
     * @author jm008783
     * @param: [failNote]
     * @return: com.xiaoa.gossip.cluster.command.PingCommand
     **/
    public PingCommand createNodeFail(PingNodeState failNote);

}
